package com.open.capacity.service;

import com.github.pagehelper.PageInfo;
import com.open.capacity.model.Menu;
import com.open.capacity.model.dto.AddMenuDto;
import com.open.capacity.model.dto.UpdateMenuDto;


import java.util.List;


public interface MenuService {

    int insert(AddMenuDto addMenuDto);
    int update(UpdateMenuDto updateMenuDto);
    int delete(Long menuid);
    PageInfo<Menu> findAll(int page, int limit);
    List<Menu> findByParent(String pvalue);
    Menu findById(Long menuid);
    List<Menu> findParent();
    List<Menu> findNotHide();
}
